<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <script type="module" src="test.js"></script>
</head>

<body>

<span onclick="test_send()">点击测试发送消息</span>
<span onclick="test_close()">测试断开连接</span>


</body>

</html>